package com.example.chatplatform.service;

import com.example.chatplatform.model.dto.AlterPasswordDTO;
import com.example.chatplatform.model.entity.User;
import com.example.chatplatform.model.vo.UserDetailVO;

import java.util.List;

public interface UserService {
    Integer user(User user);

    Integer userRegister(User user, String FileUrl);

    User userLogin(String userAccount, String userPassword);

    User userInfo(Integer userId);

    boolean alterUser(User user);

    int alterPassword(AlterPasswordDTO alterPasswordDTO);

    String avatar(Integer userId);

    boolean alterUserWithAvatar(User user, String fileUrl);

    boolean deleteUser(Integer userId, String deleteUserAvatar);

    List getObjectList(Integer userId, String currentType);

    List searchObject(String currentType, String searchObjectValue);

    UserDetailVO getUserInfo(Integer userId, Integer cronyId);
}
